namespace KPIS.GERP.Models.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class update0079 : DbMigration
    {
        public override void Up()
        {
            DropPrimaryKey("dbo.ApprovePathSimulates", new[] { "SimulateId" });
            DropColumn("dbo.ApprovePathSimulates", "SimulateId");
            RenameTable(name: "dbo.ApprovePathSimulates", newName: "SysApprovePathSimulate");
            AddColumn("dbo.SysApprovePathSimulate", "SimId", c => c.Int(nullable: false, identity: true));
            AddPrimaryKey("dbo.SysApprovePathSimulate", "SimId");
        }
        
        public override void Down()
        {
            AddColumn("dbo.SysApprovePathSimulate", "SimulateId", c => c.Guid(nullable: false, identity: true));
            DropPrimaryKey("dbo.SysApprovePathSimulate", new[] { "SimId" });
            AddPrimaryKey("dbo.ApprovePathSimulates", "SimulateId");
            DropColumn("dbo.SysApprovePathSimulate", "SimId");
            RenameTable(name: "dbo.SysApprovePathSimulate", newName: "ApprovePathSimulates");
        }
    }
}
